cd /root/eclipse-workspace/StockServer/CWebServer/webserver
#check webserver started
exit=$(netstat -tunlp|grep ':80'|grep -c webserver|xargs)
echo $exit
if [ "$exit" == "0" -o "$exit" == "\n" ];then
	pkill webserver
	#sleep 1
	make -f Makefile
	#sleep 1
	/root/eclipse-workspace/StockServer/auto_run.sh
	echo "C webserver try again"
fi
